package com.atguigu.eduService.client;

import com.atguigu.commonUtils.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(name = "service-order",fallback = OrderClientImpl.class)
public interface OrderClient {

    @ApiOperation("根据课程ID和用户ID查询订单表中的订单状态")
    @GetMapping("/orderService/order/isBuyCourse/{courseId}/{memberId}")
    public Result<Boolean> isBuyCourse(@PathVariable("courseId") String courseId, @PathVariable("memberId") String memberId);

}
